
package org.csapi.schema.parlayx.common.v3_1;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;


/**
 * <p>Java class for CallParticipantInformation complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="CallParticipantInformation">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="callParticipantIdentifier" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
 *         &lt;element name="callParticipantStatus" type="{http://www.csapi.org/schema/parlayx/common/v3_1}CallParticipantStatus"/>
 *         &lt;element name="callParticipantStartTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         &lt;element name="callParticipantDuration" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
 *         &lt;element name="callParticipantTerminationCause" type="{http://www.csapi.org/schema/parlayx/common/v3_1}CallParticipantTerminationCause" minOccurs="0"/>
 *         &lt;element name="mediaInfo" type="{http://www.csapi.org/schema/parlayx/common/v3_1}MediaInfo" maxOccurs="unbounded" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CallParticipantInformation", propOrder = {
    "callParticipantIdentifier",
    "callParticipantStatus",
    "callParticipantStartTime",
    "callParticipantDuration",
    "callParticipantTerminationCause",
    "mediaInfo"
})
public class CallParticipantInformation {

    @XmlElement(required = true)
    @XmlSchemaType(name = "anyURI")
    protected String callParticipantIdentifier;
    @XmlElement(required = true)
    protected CallParticipantStatus callParticipantStatus;
    @XmlSchemaType(name = "dateTime")
    protected XMLGregorianCalendar callParticipantStartTime;
    protected Integer callParticipantDuration;
    protected CallParticipantTerminationCause callParticipantTerminationCause;
    protected List<MediaInfo> mediaInfo;

    /**
     * Gets the value of the callParticipantIdentifier property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getCallParticipantIdentifier() {
        return callParticipantIdentifier;
    }

    /**
     * Sets the value of the callParticipantIdentifier property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setCallParticipantIdentifier(String value) {
        this.callParticipantIdentifier = value;
    }

    /**
     * Gets the value of the callParticipantStatus property.
     * 
     * @return
     *     possible object is
     *     {@link CallParticipantStatus }
     *     
     */
    public CallParticipantStatus getCallParticipantStatus() {
        return callParticipantStatus;
    }

    /**
     * Sets the value of the callParticipantStatus property.
     * 
     * @param value
     *     allowed object is
     *     {@link CallParticipantStatus }
     *     
     */
    public void setCallParticipantStatus(CallParticipantStatus value) {
        this.callParticipantStatus = value;
    }

    /**
     * Gets the value of the callParticipantStartTime property.
     * 
     * @return
     *     possible object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public XMLGregorianCalendar getCallParticipantStartTime() {
        return callParticipantStartTime;
    }

    /**
     * Sets the value of the callParticipantStartTime property.
     * 
     * @param value
     *     allowed object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public void setCallParticipantStartTime(XMLGregorianCalendar value) {
        this.callParticipantStartTime = value;
    }

    /**
     * Gets the value of the callParticipantDuration property.
     * 
     * @return
     *     possible object is
     *     {@link Integer }
     *     
     */
    public Integer getCallParticipantDuration() {
        return callParticipantDuration;
    }

    /**
     * Sets the value of the callParticipantDuration property.
     * 
     * @param value
     *     allowed object is
     *     {@link Integer }
     *     
     */
    public void setCallParticipantDuration(Integer value) {
        this.callParticipantDuration = value;
    }

    /**
     * Gets the value of the callParticipantTerminationCause property.
     * 
     * @return
     *     possible object is
     *     {@link CallParticipantTerminationCause }
     *     
     */
    public CallParticipantTerminationCause getCallParticipantTerminationCause() {
        return callParticipantTerminationCause;
    }

    /**
     * Sets the value of the callParticipantTerminationCause property.
     * 
     * @param value
     *     allowed object is
     *     {@link CallParticipantTerminationCause }
     *     
     */
    public void setCallParticipantTerminationCause(CallParticipantTerminationCause value) {
        this.callParticipantTerminationCause = value;
    }

    /**
     * Gets the value of the mediaInfo property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the mediaInfo property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getMediaInfo().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link MediaInfo }
     * 
     * 
     */
    public List<MediaInfo> getMediaInfo() {
        if (mediaInfo == null) {
            mediaInfo = new ArrayList<MediaInfo>();
        }
        return this.mediaInfo;
    }

}
